package com.autumn.annotations.ioclife.beanimpl;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * ClassName: Cat
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/1/25 2:45 下午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/1/25 2:45 下午   @Version 1.0        描述
 */
public class Cat implements InitializingBean, DisposableBean {

    public Cat() {
        System.out.println("new .... cat");
    }

    /**
    * Description: 销毁
    * @param
    * @return: void
    * @author: wangqiuyang
    * @Date: 2022/1/25 2:47 下午
    */
    @Override
    public void destroy() throws Exception {
        System.out.println("destroy .... cat .... destroy");

    }
    /**
    * Description: 初始化
    * @param
    * @return: void
    * @author: wangqiuyang
    * @Date: 2022/1/25 2:47 下午
    */
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("init .... cat .... afterPropertiesSet");

    }
}
